package com.agent.service.impl;

import com.agent.entity.Role;
import com.agent.repository.RoleMapper;
import com.agent.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hg on 2019/1/16.
 */
@Service("roleServicveImpl")
public class RoleServicveImpl implements IRoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> list(Role role) {
        return roleMapper.list(role);
    }
}
